package com.example.cf.grouplist.Bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by cf on 2016/8/11.
 */

public class ClassBean implements Parcelable {
    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public List<ProductionBean> getList() {
        return list;
    }

    public void setList(List<ProductionBean> list) {
        this.list = list;
    }

    private String className;
    private List<ProductionBean> list;

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.className);
        dest.writeList(this.list);
    }

    public ClassBean() {
    }

    protected ClassBean(Parcel in) {
        this.className = in.readString();
        this.list = new ArrayList<ProductionBean>();
        in.readList(this.list, ProductionBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<ClassBean> CREATOR = new Parcelable.Creator<ClassBean>() {
        @Override
        public ClassBean createFromParcel(Parcel source) {
            return new ClassBean(source);
        }

        @Override
        public ClassBean[] newArray(int size) {
            return new ClassBean[size];
        }
    };
}
